package com.obelisco.vista.estilos;

import nextapp.echo2.app.ImageReference;
import nextapp.echo2.app.ResourceImageReference;
import nextapp.echo2.app.StyleSheet;
import nextapp.echo2.app.componentxml.ComponentXmlException;
import nextapp.echo2.app.componentxml.StyleSheetLoader;

/**
 * Look-and-feel information.
 */
public class Styles {

    public static final String STYLE_PATH = "/";
    public static final String IMAGE_PATH = "/com/obelisco/vista/resource/image/icon/";
    public static final String GENERAL_ICON_PATH = IMAGE_PATH + "general/";
    
    /**
     * Default application style sheet.
     */
    public static final StyleSheet DEFAULT_STYLE_SHEET;
    static {
        try {
            DEFAULT_STYLE_SHEET = StyleSheetLoader.load(STYLE_PATH + "Default.stylesheet", 
                    Thread.currentThread().getContextClassLoader());
        } catch (ComponentXmlException ex) {
            throw new RuntimeException(ex);
        }
    }

    // Images
    public static final ImageReference ICON_24_NO = new ResourceImageReference(GENERAL_ICON_PATH + "Icon24No.gif");
    public static final ImageReference ICON_24_YES = new ResourceImageReference(GENERAL_ICON_PATH + "Icon24Yes.gif");

    // Iconos para las Funciones Predeterminadas
    public static final ImageReference ICON_24_INCLUIR = new ResourceImageReference(IMAGE_PATH + "buttons/" +"incluir.png");
    public static final ImageReference ICON_24_EDITAR = new ResourceImageReference(IMAGE_PATH + "buttons/" + "editar.png");
    public static final ImageReference ICON_24_ELIMINAR = new ResourceImageReference(IMAGE_PATH + "buttons/" + "eliminar.png");
    public static final ImageReference ICON_24_CONSULTAR = new ResourceImageReference(IMAGE_PATH + "buttons/" + "consultar.png");
    public static final ImageReference ICON_24_DESCONOCIDO = new ResourceImageReference(IMAGE_PATH + "buttons/" + "desconocido.png");

    // Iconos para las Acciones Predeterminadas
    public static final ImageReference ICON_24_ACEPTAR = new ResourceImageReference(IMAGE_PATH + "buttons/" + "aceptar.png");
    public static final ImageReference ICON_24_CANCELAR = new ResourceImageReference(IMAGE_PATH + "buttons/" + "cancelar.png");
    public static final ImageReference ICON_24_AYUDA = new ResourceImageReference(IMAGE_PATH + "buttons/" + "ayuda.png");
    public static final ImageReference ICON_24_SALIR = new ResourceImageReference(IMAGE_PATH + "buttons/" +  "salir.png");
    public static final ImageReference ICON_24_ANTERIOR = new ResourceImageReference(IMAGE_PATH + "buttons/" + "anterior.png");
    public static final ImageReference ICON_24_SIGUIENTE = new ResourceImageReference(IMAGE_PATH + "buttons/" + "siguiente.png");
    
    // Iconos de Tipo de Operacion
    public static final ImageReference ICON_24_INFORMACION = new ResourceImageReference(GENERAL_ICON_PATH + "Icon24Informacion.png");
    public static final ImageReference ICON_24_ADVERTENCIA = new ResourceImageReference(GENERAL_ICON_PATH + "Icon24Advertencia.png");
    public static final ImageReference ICON_24_ERROR = new ResourceImageReference(GENERAL_ICON_PATH + "Icon24Error.png");

    public static final ImageReference MENSAJE_INFORMACION = new ResourceImageReference(IMAGE_PATH + "message/custom/" + "Info.png");
    public static final ImageReference MENSAJE_ADVERTENCIA = new ResourceImageReference(IMAGE_PATH + "message/custom/" + "Warning.png");
    public static final ImageReference MENSAJE_ERROR = new ResourceImageReference(IMAGE_PATH + "message/custom/" + "Error.png");

    // Icono NO Hay Foto
    public static final ImageReference ICON_NOFOTO = new ResourceImageReference(GENERAL_ICON_PATH + "IconNofoto.jpg");

    // Iconos para el Arbol
    public static final ImageReference ICON_16_FOLDER = new ResourceImageReference(GENERAL_ICON_PATH + "Icon16FolderRun.png");
    public static final ImageReference ICON_16_RUN  = new ResourceImageReference(GENERAL_ICON_PATH + "Icon16Run.png");
    public static final ImageReference ICON_16_RUNOK  = new ResourceImageReference(GENERAL_ICON_PATH + "Icon16RunOk.png");
    public static final ImageReference ICON_16_RUNDENY  = new ResourceImageReference(GENERAL_ICON_PATH + "Icon16RunDeny.png");
    public static final ImageReference ICON_16_PREF  = new ResourceImageReference(GENERAL_ICON_PATH + "Icon16Pref.png");
    public static final ImageReference ICON_16_NOPREF  = new ResourceImageReference(GENERAL_ICON_PATH + "Icon16NoPref.png");
    
    
    public static final ImageReference ICON_24_PERSONKEY = new ResourceImageReference(GENERAL_ICON_PATH + "Icon24PersonKey.png");

}
